$("body").append("<div class=\"loading\">\n" +
    "        <div class=\"sk-spinner sk-spinner-three-bounce\">\n" +
    "            <div class=\"sk-bounce1\"></div>\n" +
    "            <div class=\"sk-bounce2\"></div>\n" +
    "            <div class=\"sk-bounce3\"></div>\n" +
    "            <span class=\"loading-text\"></span>\n" +
    "        </div>\n" +
    "    </div>");
function loading(obj) {
    var loadingBox = $(".loading");
    var loadingText=$(".loading-text");
    if(obj.isShow){
        loadingBox.show();
        if(obj.text){
            loadingText.html(obj.text);
        }else{
            loadingText.html("Loading...");
        };
    }else{
        loadingBox.hide();
    }
}